This is the first step in removing clips.
It's seperate to allow bisecting to this commit when analyzing
performance problems.
GtkSnapshot *snapshot)
{
GtkWidgetPrivate *priv = widget->priv;
- graphene_rect_t offset_clip;
graphene_rect_t clip;
gboolean has_clip;
double opacity;
}
priv = widget->priv;
- graphene_rect_init (&offset_clip,
- priv->clip.x - priv->allocation.x,
- priv->clip.y - priv->allocation.y,
- priv->clip.width,
- priv->clip.height);
-
- if (gtk_snapshot_clips_rect (snapshot, &offset_clip))
- return;
opacity = widget->priv->alpha / 255.0;
if (opacity <= 0.0)